<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateActivityInfosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('activity_infos', function (Blueprint $table) {
            $table->uuid('id');
            $table->string('name');//活动名称
            $table->smallInteger('method')->default(0);//发放方式，0平均，1随机
            $table->timestamp('created_at')->nullable();
            $table->timestamp('updated_at')->nullable();
            $table->timestamp('deleted_at')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('activity_infos', function (Blueprint $table) {
            $table->dropIfExists();
        });
    }
}
